home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
10
/
6
/
DISK1065.ZIP
/
P_INSTAL.BAT
< prev
next >
Wrap
DOS Batch File
|
1980-01-01
|
6KB
|
143 lines
echo off
rem
rem P-INSTAL.BAT for The Presidents A & B
rem
cls
if x%1==x goto di-rections
if x%2==x goto di-rections
if not exist %1PRES_B.EXE goto error
if not exist %1PRES_A.EXE goto error
if not exist %1P_README.1ST goto error
if %2==b: goto small-disk
if %2==B: goto small-disk
goto big-disk
rem Display Install help if drive data are wrong
:di-rections
echo ╒════════════════════════╗ ╔════════════════════════════════════╕
echo │ Installation Procedure ║ ║ Syntax: INSTALL drive1 drive2 │
echo ├────────────────────────╨───────╨────────────────────────────────────┤
echo │ The Install procedure must be from one drive to another. │
echo │ The distribution disk must be placed in drive1. The Install │
echo │ program will expand the files to drive2. │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ If you use a Dual Floppy 360k system you will need to prepare two │
echo │ formatted diskettes. Label one of the disk PRESIDENT A and the │
echo │ PRESIDENT B. When ready place the distribution disk in drive A: │
echo │ type .... INSTALL A: B: │
ECHO ╞═════════════════════════════════════════════════════════════════════╡
echo │ For a Hard Disk or a 720k+ system you will require at least 700K │
echo │ for the subdirectory \PRES that will be created. When ready place │
echo │ the distribution disk in drive A: (or B:) and type "from" - "to": │
echo │ INSTALL A: C: (program material from A: to hard disk C:) or │
echo │ INSTALL B: C: (program material from B: to hard disk C:) or │
echo │ INSTALL A: B: (program material from A: to 360 or 720K+ disk B:) │
echo ╞═════════════════════════════════════════════════════════════════════╡
echo │ NOTE: The INSTALL batch file will supply supplemental instructions.│
echo ╘═════════════════════════════════════════════════════════════════════╛
pause
cls
goto exit_bat
rem *** routine for hard disk installation procedure ***
:big-disk
cls
echo ╒══════════════════════════════════════════════════════════╕
echo │ You have chosen to install the President files │
echo │ from drive "%1" to drive "%2" fixed disk. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Remember, the Destination drive %2 must have 700K free. │
echo ├──────────────────────────────────────────────────────────┤
echo │ If you wish to change your mind press "CTRL+BREAK" now. │
echo ├──────────────────────────────────────────────────────────┤
echo │ Otherwise .... │
echo ╘══════════════════════════════════════════════════════════╛
echo:
pause
%2
cls
echo ┌──────────────────────────────────────┐
echo │ Creating \PRES directory on "%2". │
echo └──────────────────────────────────────┘
cd \
md PRES
cd \PRES
echo ┌────────────────────────────────────────┐
echo │ Extracting files ................. │
echo │ This may take a few moments.... │
echo └────────────────────────────────────────┘
COPY %1P_README.1st %2
%1PRES_A
%1PRES_B
dir /w %2
pause
goto done
rem
rem *** Installation procedure for 360K - 720k+ diskette ***
rem
:small-disk
cls
echo ╔══════════╦═════════════════════════════════════════════════════════╗
echo ║ FLOPPY ║ It is assumed you have chosen to install the files ║
echo ║ INSTALL ║ from Drive A: to a 360K or 720k+ disk on Drive B: ║
echo ╠══════════╩═════════════════════════════════════════════════════════╣
echo ║ Remember - you should have diskettes formatted and prepared ║
echo ║ labeled PRES_A (& PRES_B). Press CTRL+BREAK if not ready, else...║
echo ╠════════════════════════════════════════════════════════════════════╣
echo ║ Put distribution disk in drive A: & Disk PRES_A in Drive B: and ..║
echo ╚════════════════════════════════════════════════════════════════════╝
echo:
pause
cls
echo ┌────────────────────────────────────────┐
echo │ Extracting QUIZPRES & TEST files .... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%2
COPY %1P_README.1ST %2
%1pres_A
dir /w %2
pause
cls
echo ╔═══════════════════════════════════════════════════════════════╗
echo ║ If a 360k disk: Remove PRES_A disk from drive B: ║
echo ║ Replace it with the PRES_B disk, or ... ║
echo ║===============================================================║
echo ║ If a 720k+ disk: No need to remove the disk. Just ......... ║
echo ╚═══════════════════════════════════════════════════════════════╝
echo:
pause
echo ┌────────────────────────────────────────┐
echo │ Extracting BIOGRAPHY files .......... │
echo │ This may take a few moments ......... │
echo └────────────────────────────────────────┘
%1PRES_B
dir /w %2
pause
:done
cls
echo ┌─────────────────────────────────────────────────────────┐
echo │ BRAVO ... The installation procedure has been complete! │
echo └─────────────────────────────────────────────────────────┘
echo:
echo:
echo ╔═════════════════════════════╤═════════════════════════════════╗
echo ║ The document may be printed.│ : PRINT PRES.DOC ║
echo ║ or listed to the screen.....│by typing : TYPE PRES.DOC ║
echo ║ The programs may be run.....│ : QUIZPRES ║
ECHO ║ OR .........................│ : READPRES ║
echo ╚═════════════════════════════╧═════════════════════════════════╝
GOTO EXIT_BAT
:ERROR
CLS
echo
echo
echo d
echo:
echo ************************************************************
ECHO * We have not found the correct files on drive %1. Please *
echo * place the distribution disk in drive %1 and start over. *
echo ************************************************************
echo
pause
:exit_bat